# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
 -------------------------------------------------
    File Name:     runtest.py
    Description:   
 -------------------------------------------------
 """
from apitesting.core.base import BaseCommand


class Command(BaseCommand):
    def execute(self, *args):
        try:
            print("开始执行run tests")
            from apitesting.src.run_tests import main
            main()
        except ImportError as ie:
            print(f"Error importing module: {str(ie)}")
        except Exception as e:
            print(f"Error occurred while running tests: {str(e)}")
